package org.shopen.puremvc.controller.startup
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.shopen.puremvc.view.AboutWindowMediator;
	import org.shopen.puremvc.view.ApplicationMediator;
	import org.shopen.puremvc.view.CreateWindowMediator;
	import org.shopen.puremvc.view.ErrorWindowMediator;
	import org.shopen.puremvc.view.HelpWindowMediator;
	import org.shopen.puremvc.view.SaveWindowMediator;

	public class PrepViewCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			// TODO: implement
			facade.registerMediator(new ApplicationMediator(notification.getBody()));
			facade.registerMediator(new ErrorWindowMediator(notification.getBody()));
			facade.registerMediator(new AboutWindowMediator(notification.getBody()));
			facade.registerMediator(new HelpWindowMediator(notification.getBody()));
			
			facade.registerMediator(new CreateWindowMediator(notification.getBody()));
			facade.registerMediator(new SaveWindowMediator(notification.getBody()));
			//facade.registerMediator(new OpenWindowMediator(notification.getBody()));
						
		}
	}
}